package cn.bugstack.test.domain;

import cn.bugstack.domain.strategy.service.armory.IStrategyArmory;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

/**
 * @Title: StrategyArmoryTest
 * @Author lz
 * @Date 2025/7/24 12:45
 * @description: 测试
 */

@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class StrategyArmoryTest {
    @Resource
    private IStrategyArmory strategyArmory;


    @Test
    public void test_assembleLotteryStrategy() {
        // 策略ID
        Long strategyId = 100001L;
        strategyArmory.assembleLotteryStrategy(strategyId);
        // 策略抽奖
        log.info("测试结果：{}",strategyArmory.getRandomAwardId(strategyId));
    }
}
